<?php

Yii::import('zii.widgets.CPortlet');

class UserLoginForm extends Portlet
{
	public $title='Login';

	protected function renderContent()
	{
		$form=new LoginForm;
		if(isset($_POST['LoginForm']))
		{
			$form->attributes=$_POST['LoginForm'];
			if($form->validate())
				$this->controller->refresh();
		} 
		$this->render('userLogin',array('form'=>$form));
		//$this->render('userLogin');
	}
}
